package com.wcity.manage.service.community.permit.impl;

import com.wcity.manage.common.vo.community.permit.PermitPartitionVo;
import com.wcity.manage.dao.mapper.community.permit.PermitPartitionMapper;
import com.wcity.manage.dao.model.community.permit.PermitPartition;
import com.wcity.manage.service.community.permit.PermitPartitionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 证件类型细分
 * Created by hgg on 2016/12/17.
 */
@Service
public class PermitPartitionServiceImpl implements PermitPartitionService {

    @Autowired
    private PermitPartitionMapper partitionMapper;

    /**
     * 证件类型细分列表
     * @param queryMap
     * @return
     */
    @Override
    public List<PermitPartitionVo> permitPartitionPageList(Map<String, Object> queryMap ) {

        return partitionMapper.permitPartitionPageList( queryMap );
    }

    /**
     * 删除证件类型细分
     * @param deleteMap
     * @return
     */
    @Override
    public Integer deletePermitPartition( Map<String, Object> deleteMap ) {

        return partitionMapper.deletePermitPartition( deleteMap );
    }

    /**
     * 新增证件类型细分
     * @param permitPartition
     * @return
     */
    @Override
    public Integer saveAddPermitPartition( PermitPartition permitPartition ) {

        return partitionMapper.saveAddPermitPartition( permitPartition );
    }

    /**
     * 更新证件类型细分
     * @param permitPartition
     * @return
     */
    @Override
    public Integer saveUpdatePermitPartition( PermitPartition permitPartition ) {

        return partitionMapper.saveUpdatePermitPartition( permitPartition );
    }

    /**
     * 证件类型细分详情
     * @param detailMap
     * @return
     */
    @Override
    public PermitPartitionVo permitPartitionDetail(Map<String, Object> detailMap ) {

        return partitionMapper.permitPartitionDetail( detailMap );
    }

    /**
     * 证件类型细分总数量
     * @param queryMap
     * @return
     */
    @Override
    public Integer totalPermitPartition( Map<String, Object> queryMap ) {

        return partitionMapper.totalPermitPartition( queryMap );
    }
}
